package java04;
//笔记本电脑类
public class Laptop {
    private String name;//笔记本电脑名
    private int memory;//内存
    private InsertDraaawable ins;

    public Laptop() {
    }

    public Laptop(String name, int memory, InsertDraaawable ins) {
        this.name = name;
        this.memory = memory;
        this.ins = ins;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMemory() {
        return memory;
    }

    public void setMemory(int memory) {
        this.memory = memory;
    }

    public InsertDraaawable getIns() {
        return ins;
    }

    public void setIns(InsertDraaawable ins) {
        this.ins = ins;
    }
    //笔记本连接的外设
    public void getUsb(){
        ins.usb();
    }
}
